/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Processes;

import java.io.Serializable;

/**
 *
 * @author Kim
 */
public class Navigate implements Serializable{
private String page;
private String userpage;
private String adminpage;

    public String getAdminpage() {
        return adminpage;
    }

    public void setAdminpage(String adminpage) {
        this.adminpage = adminpage;
    }

    public String getUserpage() {
        return userpage;
    }

    public void setUserpage(String userpage) {
        this.userpage = userpage;
    }
    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }
    /** Creates a new instance of Navigate */
    public Navigate() {
    }
    
    //Navigate in Main page
    public void toLogin(){
        this.page="./../Form/LoginForm.xhtml";

    }
    public void toRegis(){
        this.page="./../Form/Register.xhtml";
        //end Navigate in Main page
        //Navigate in user page
    }
    public void toView(){

        this.userpage="./ViewAccount.xhtml";
    }
    public void toEdit(){
        this.userpage="./Edit.xhtml";
    }
    public void toUpgrade(){
        this.userpage="./Upgrade.xhtml";
    }
    public void toRegisDriver(){
        this.userpage="./RegisDriver.xhtml";
    }
    public void toRegisCompany(){
        this.userpage="./RegisCompany.xhtml";
    }
    public void toRegisAdvertise(){
        this.userpage="./RegisAdvertise.xhtml";
    }
        //End navigate in user page
    
    //Navigate in Admin Page
    public void toAdminView(){
        this.adminpage="./AdminView.xhtml";
    }
    public void toCompany(){
        this.adminpage="./ManageCompany.xhtml";
    }
    public void toDriver(){
        this.adminpage="./ManageDriver.xhtml";
    }
    public void toUser(){
        this.adminpage="./ManageUser.xhtml";
    }
    public void toAdvertise(){
        this.adminpage="./ManageAdvertise.xhtml";
    }
    public void toFeedback(){
        this.adminpage="./ManageFeedback.xhtml";
    }
    public void toOrder(){
        this.adminpage="./ManageOrder.xhtml";
    }
    
}
